import request from "@/utils/request";

// 查询图书类型管理列表
export function listType(query) {
  return request({
    url: "/library/bookType/list",
    method: "get",
    params: query,
  });
}

// 查询图书类型管理详细
export function getType(id) {
  return request({
    url: "/library/bookType/" + id,
    method: "get",
  });
}

// 新增图书类型管理
export function addType(data) {
  return request({
    url: "/library/bookType",
    method: "post",
    data: data,
  });
}

// 修改图书类型管理
export function updateType(data) {
  return request({
    url: "/library/bookType",
    method: "put",
    data: data,
  });
}

// 删除图书类型管理
export function delType(id) {
  return request({
    url: "/library/bookType/" + id,
    method: "delete",
  });
}
